package com.google.code.netbuilder.dal.entities;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;


@XmlType(propOrder = {"equipmentId", "portId"}, 
                         name = "EquipmentPort")
@XmlAccessorType(XmlAccessType.FIELD)
@Entity
@Table(name = "equipment_port")
@SequenceGenerator(name="seq", initialValue=1, allocationSize=100)
public class EquipmentPort {

        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq")
        Integer id;
        @Column(name="id_Equipment")
	Integer equipmentId;
        @Column(name="id_port")
	Integer portId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getEquipmentId() {
		return equipmentId;
	}

	public void setEquipmentId(Integer equipmentId) {
		this.equipmentId = equipmentId;
	}

	public Integer getPortId() {
		return portId;
	}

	public void setPortId(Integer portId) {
		this.portId = portId;
	}

}
